package net.coolskill.demo.springboot.aop;

import org.springframework.aop.framework.AbstractAdvisingBeanPostProcessor;
import org.springframework.beans.factory.InitializingBean;

public class ProfilerAdvisingBeanPostProcessor extends AbstractAdvisingBeanPostProcessor implements
    InitializingBean {

    @Override
    public void afterPropertiesSet() {
        setBeforeExistingAdvisors(true);
        this.advisor = new ProfilerPointcutAdvisor();
    }
}